using Entitas;

public sealed class CreateEnemySystem : IExecuteSystem {

    Contexts _pools;

    public CreateEnemySystem(Contexts _pools)
    {
        this._pools = _pools;
    }

    public void Execute() {

        // TODO Interval should be configurable
        if(_pools.input.tick.value % 60 == 0) {
            _pools.blueprints.blueprints.instance
                  .ApplyEnemy(_pools.core.CreateEntity());
        }
    }
}
